package com.szzg10.thinking.chapter18;

import java.util.Collection;

public class PPrint {

	public static void print(Collection<String> collection) {
		StringBuilder builder = new StringBuilder();
		builder.append("[ ");
		
		for(String element: collection) {
			builder.append(element + " ");
		}
		
		builder.append("]");
		
		System.out.println(builder);
	}
}
